/*
 * PdfExporter
 * 
 * Project: Oxygen
 * 
 * Copyright 2010 by Firmenich SA
 * Rue de la Bergère 7, 1217 Meyrin
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of Firmenich SA. ("Confidential Information"). You
 * shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license
 * agreement you entered into with Firmenich.
 */

package com.thientan.export;

import net.sf.jasperreports.engine.JRTextElement;
import net.sf.jasperreports.engine.export.JRPdfExporter;
import net.sf.jasperreports.engine.export.JRPdfExporterParameter;
import net.sf.jasperreports.engine.util.JRProperties;

/**
 * Export to PDF file.
 * 
 * @author qtt
 * 
 */
public class PdfExporter extends AbstractExporter {

    /**
     * {@inheritDoc}
     */
    @Override
    protected void initialize() {
        exporter = new JRPdfExporter();
        exporter.setParameter(JRPdfExporterParameter.IS_CREATING_BATCH_MODE_BOOKMARKS, Boolean.TRUE);
        JRProperties.setProperty(JRTextElement.DEFAULT_PDF_EMBEDDED, false);
        JRProperties.setProperty("net.sf.jasperreports.default.pdf.encoding", "Identity-H");
        
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void configExporter(ExportRequest request) {

    }
}
